﻿using HDS.Model;
using HDS.Model.Entity.Master;
using HDS.Model.Entity.View;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace HDS.IService.Master
{
    public interface IMappingService
    {
        Task<DataPagingModel<VMappingHotelOpt>> GetVMappingHotels(int pageIndex, int pageSize, Expression<Func<VMappingHotelOpt, bool>> whereExpression, string whereSql);

        Task<List<VMappingHotel>> GetVMappingHotels(int hotelId);

        Task<bool> SaveMappingHotel(MappingHotel entity);

        Task<bool> DeleteMappingHotel(int hotelId, string supplier, string supplierHotelId);

        Task<List<VMappingRoom>> GetVMappingRooms(int hotelId);

        Task<List<SupplierRoom>> GetUnMappingRooms(int hotelId);

        Task<int> GetUnMappingRoomCount(int hotelId);

        Task<bool> SaveRoomMappings(List<MappingRoom> mappingRoomList);

        Task<bool> CancelRoomMapping(string supplier, string supplierHotelId, string supplierRoomId);
    }
}
